Optimal. Leaf size=133 \[ \frac {\left (3 a^2+2 a b+3 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {b} \sinh (c+d x)}{\sqrt {a}}\right )}{8 a^{5/2} b^{5/2} d}-\frac {(a-b) \cosh ^2(c+d x) \sinh (c+d x)}{4 a b d \left (a+b \sinh ^2(c+d x)\right )^2}+\frac {3 \left (\frac {1}{a^2}-\frac {1}{b^2}\right ) \sinh (c+d x)}{8 d \left (a+b \sinh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3269, 424, 393,
211} \begin {gather*} \frac {3 \left (\frac {1}{a^2}-\frac {1}{b^2}\right ) \sinh (c+d x)}{8 d \left (a+b \sinh ^2(c+d x)\right )}+\frac {\left (3 a^2+2 a b+3 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {b} \sinh (c+d x)}{\sqrt {a}}\right )}{8 a^{5/2} b^{5/2} d}-\frac {(a-b) \sinh (c+d x) \cosh ^2(c+d x)}{4 a b d \left (a+b \sinh ^2(c+d x)\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 393
Rule 424
Rule 3269
Rubi steps
\begin {align*} \int \frac {\cosh ^5(c+d x)}{\left (a+b \sinh ^2(c+d x)\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (1+x^2\right )^2}{\left (a+b x^2\right )^3} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=-\frac {(a-b) \cosh ^2(c+d x) \sinh (c+d x)}{4 a b d \left (a+b \sinh ^2(c+d x)\right )^2}+\frac {\text {Subst}\left (\int \frac {a+3 b+(3 a+b) x^2}{\left (a+b x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{4 a b d}\\ &=-\frac {(a-b) \cosh ^2(c+d x) \sinh (c+d x)}{4 a b d \left (a+b \sinh ^2(c+d x)\right )^2}-\frac {3 \left (a^2-b^2\right ) \sinh (c+d x)}{8 a^2 b^2 d \left (a+b \sinh ^2(c+d x)\right )}+\frac {\left (3 a^2+2 a b+3 b^2\right ) \text {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,\sinh (c+d x)\right )}{8 a^2 b^2 d}\\ &=\frac {\left (3 a^2+2 a b+3 b^2\right ) \tan ^{-1}\left (\frac {\sqrt {b} \sinh (c+d x)}{\sqrt {a}}\right )}{8 a^{5/2} b^{5/2} d}-\frac {(a-b) \cosh ^2(c+d x) \sinh (c+d x)}{4 a b d \left (a+b \sinh ^2(c+d x)\right )^2}-\frac {3 \left (a^2-b^2\right ) \sinh (c+d x)}{8 a^2 b^2 d \left (a+b \sinh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.26, size = 149, normalized size = 1.12 \begin {gather*} \frac {-\left (\left (3 a^2+2 a b+3 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \text {csch}(c+d x)}{\sqrt {b}}\right )\right )+\frac {8 a^{3/2} (a-b)^2 \sqrt {b} \sinh (c+d x)}{(2 a-b+b \cosh (2 (c+d x)))^2}-\frac {2 \sqrt {a} \sqrt {b} \left (5 a^2-2 a b-3 b^2\right ) \sinh (c+d x)}{2 a-b+b \cosh (2 (c+d x))}}{8 a^{5/2} b^{5/2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(399\) vs.
\(2(119)=238\).
time = 1.90, size = 400, normalized size = 3.01
method | result | size |
derivativedivides | \(\frac {\frac {\frac {\left (3 a^{2}+2 a b -5 b^{2}\right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a \,b^{2}}-\frac {\left (9 a^{3}-14 a^{2} b -7 a \,b^{2}+12 b^{3}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a^{2} b^{2}}+\frac {\left (9 a^{3}-14 a^{2} b -7 a \,b^{2}+12 b^{3}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a^{2} b^{2}}-\frac {\left (3 a^{2}+2 a b -5 b^{2}\right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 a \,b^{2}}}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a \right )^{2}}+\frac {\left (3 a^{2}+2 a b +3 b^{2}\right ) \left (\frac {\left (-a +\sqrt {-b \left (a -b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}-\frac {\left (a +\sqrt {-b \left (a -b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{4 a \,b^{2}}}{d}\) | \(400\) |
default | \(\frac {\frac {\frac {\left (3 a^{2}+2 a b -5 b^{2}\right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a \,b^{2}}-\frac {\left (9 a^{3}-14 a^{2} b -7 a \,b^{2}+12 b^{3}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a^{2} b^{2}}+\frac {\left (9 a^{3}-14 a^{2} b -7 a \,b^{2}+12 b^{3}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a^{2} b^{2}}-\frac {\left (3 a^{2}+2 a b -5 b^{2}\right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 a \,b^{2}}}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a \right )^{2}}+\frac {\left (3 a^{2}+2 a b +3 b^{2}\right ) \left (\frac {\left (-a +\sqrt {-b \left (a -b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}-\frac {\left (a +\sqrt {-b \left (a -b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{4 a \,b^{2}}}{d}\) | \(400\) |
risch | \(-\frac {{\mathrm e}^{d x +c} \left (5 a^{2} b \,{\mathrm e}^{6 d x +6 c}-2 a \,b^{2} {\mathrm e}^{6 d x +6 c}-3 b^{3} {\mathrm e}^{6 d x +6 c}+12 a^{3} {\mathrm e}^{4 d x +4 c}-7 a^{2} b \,{\mathrm e}^{4 d x +4 c}-14 a \,b^{2} {\mathrm e}^{4 d x +4 c}+9 b^{3} {\mathrm e}^{4 d x +4 c}-12 a^{3} {\mathrm e}^{2 d x +2 c}+7 a^{2} b \,{\mathrm e}^{2 d x +2 c}+14 a \,b^{2} {\mathrm e}^{2 d x +2 c}-9 b^{3} {\mathrm e}^{2 d x +2 c}-5 a^{2} b +2 a \,b^{2}+3 b^{3}\right )}{4 b^{2} a^{2} d \left (b \,{\mathrm e}^{4 d x +4 c}+4 a \,{\mathrm e}^{2 d x +2 c}-2 b \,{\mathrm e}^{2 d x +2 c}+b \right )^{2}}-\frac {3 \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 a \,{\mathrm e}^{d x +c}}{\sqrt {-a b}}-1\right )}{16 \sqrt {-a b}\, d \,b^{2}}-\frac {\ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 a \,{\mathrm e}^{d x +c}}{\sqrt {-a b}}-1\right )}{8 \sqrt {-a b}\, d b a}-\frac {3 \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 a \,{\mathrm e}^{d x +c}}{\sqrt {-a b}}-1\right )}{16 \sqrt {-a b}\, d \,a^{2}}+\frac {3 \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \,{\mathrm e}^{d x +c}}{\sqrt {-a b}}-1\right )}{16 \sqrt {-a b}\, d \,b^{2}}+\frac {\ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \,{\mathrm e}^{d x +c}}{\sqrt {-a b}}-1\right )}{8 \sqrt {-a b}\, d b a}+\frac {3 \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \,{\mathrm e}^{d x +c}}{\sqrt {-a b}}-1\right )}{16 \sqrt {-a b}\, d \,a^{2}}\) | \(488\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 3266 vs.
\(2 (119) = 238\).
time = 0.43, size = 5844, normalized size = 43.94 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {cosh}\left (c+d\,x\right )}^5}{{\left (b\,{\mathrm {sinh}\left (c+d\,x\right )}^2+a\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________